package com.zdhy.zoc.collect.snmp.model;

import org.snmp4j.smi.OctetString;

import java.io.Serializable;

/**
 * Created by 梁浩峰 on 2016/8/24 17:25.
 */
public abstract class ModelSnmp<T> implements Serializable{
    private Integer workStatus;
    private float workCpu;
    private float workmen;

    private  String hosts ;
    private  String port;
    private  OctetString readName;
    private  String username;
    private  String userpass;
    private  int snmpVersion;

    public Integer getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(Integer workStatus) {
        this.workStatus = workStatus;
    }

    public float getWorkCpu() {
        return workCpu;
    }

    public void setWorkCpu(float workCpu) {
        this.workCpu = workCpu;
    }

    public float getWorkmen() {
        return workmen;
    }

    public void setWorkmen(float workmen) {
        this.workmen = workmen;
    }

    public String getHosts() {
        return hosts;
    }

    public void setHosts(String hosts) {
        this.hosts = hosts;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public OctetString getReadName() {
        return readName;
    }

    public void setReadName(String readName) {
        this.readName = new OctetString(readName);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpass() {
        return userpass;
    }

    public void setUserpass(String userpass) {
        this.userpass = userpass;
    }

    public int getSnmpVersion() {
        return snmpVersion;
    }

    public void setSnmpVersion(int snmpVersion) {
        this.snmpVersion = snmpVersion;
    }

    public ModelSnmp(String hosts, String port, String readName, int snmpVersion) {
        this.hosts = hosts;
        this.port = port;
        this.readName = new OctetString(readName);
        this.snmpVersion = snmpVersion;
    }

    public ModelSnmp(String hosts, String port, String username, String userpass, int snmpVersion) {
        this.hosts = hosts;
        this.port = port;
        this.username = username;
        this.userpass = userpass;
        this.snmpVersion = snmpVersion;
    }

    public ModelSnmp(Integer workStatus, float workCpu, float workmen) {
        this.workStatus = workStatus;
        this.workCpu = workCpu;
        this.workmen = workmen;
    }

    public ModelSnmp() {
    }

    public abstract  T walkData(T t) throws Exception;
}
